package org.example.service;


import org.example.mapper.UserMapper;
import org.example.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryByCondition(User param) {
        return userMapper.selectOne(param);
    }

    public int insert(User user) {
        return userMapper.insertSelective(user);
    }
}
